CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

#INCLUDE & SOURCE
SET(SRC_test_CLI 					${DIR_test}/test_cli.c)
SET(SRC_test_SCTP 					${DIR_test}/test_sctp.c)
SET(SRC_test_XML 					${DIR_test}/test_xml2.c)
SET(SRC_test_MEM 					${DIR_test}/test_mem.c)
SET(SRC_test_LRU 					${DIR_test}/test_lru.c)
SET(SRC_test_HTBL 					${DIR_test}/test_htbl.c)
SET(SRC_test_LOG 					${DIR_test}/test_log.c)
SET(SRC_test_STEP 					${DIR_test}/test_step.c)
SET(SRC_test_EVT 					${DIR_test}/test_evt.c)
#SET(SRC_test_GEN 					${DIR_test}/genx_test.c)

#Test Binary
IF(UNIX)

ELSEIF(WIN32)	

ENDIF()

#OUTPUT


IF(UNIX)

ADD_EXECUTABLE(test_cli 		${SRC_test_CLI})
ADD_DEPENDENCIES(test_cli 	ak-lib)
TARGET_LINK_LIBRARIES(test_cli 	ak-lib )

ADD_EXECUTABLE(test_sctp 		${SRC_test_SCTP})
ADD_DEPENDENCIES(test_sctp 	ak-lib)
TARGET_LINK_LIBRARIES(test_sctp ak-lib )

ADD_EXECUTABLE(test_xml 		${SRC_test_XML})
ADD_DEPENDENCIES(test_xml 	ak-lib)
TARGET_LINK_LIBRARIES(test_xml 	ak-lib )

ADD_EXECUTABLE(test_mem 		${SRC_test_MEM})
ADD_DEPENDENCIES(test_mem 	ak-lib)
TARGET_LINK_LIBRARIES(test_mem 	ak-lib )

ADD_EXECUTABLE(test_lru 		${SRC_test_LRU})
ADD_DEPENDENCIES(test_lru 	ak-lib)
TARGET_LINK_LIBRARIES(test_lru 	ak-lib )

ADD_EXECUTABLE(test_htbl 		${SRC_test_HTBL})
ADD_DEPENDENCIES(test_htbl 	ak-lib)
TARGET_LINK_LIBRARIES(test_htbl ak-lib )

ADD_EXECUTABLE(test_log 		${SRC_test_LOG})
ADD_DEPENDENCIES(test_log 	ak-lib)
TARGET_LINK_LIBRARIES(test_log 	ak-lib )

ADD_EXECUTABLE(test_step 		${SRC_test_STEP})
ADD_DEPENDENCIES(test_step 	ak-lib)
TARGET_LINK_LIBRARIES(test_step 	ak-lib )

ADD_EXECUTABLE(test_evt 		${SRC_test_EVT})
ADD_DEPENDENCIES(test_evt 	ak-lib)
TARGET_LINK_LIBRARIES(test_evt 	ak-lib )

#ADD_EXECUTABLE(test_gen 		${SRC_test_GEN})
#ADD_DEPENDENCIES(test_gen 	ak-lib)
#TARGET_LINK_LIBRARIES(test_gen 	ak-lib )


ELSEIF(WIN32)
ADD_DEPENDENCIES(test_xml 	ak-lib_s)
ADD_DEPENDENCIES(test_mem 	ak-lib_s)
ADD_DEPENDENCIES(test_lru 	ak-lib_s)
ADD_DEPENDENCIES(test_htbl 	ak-lib_s)
ADD_DEPENDENCIES(test_log 	ak-lib_s)

TARGET_LINK_LIBRARIES(test_xml 	ak-lib_s )
TARGET_LINK_LIBRARIES(test_mem 	ak-lib_s )
TARGET_LINK_LIBRARIES(test_lru 	ak-lib_s )
TARGET_LINK_LIBRARIES(test_htbl ak-lib_s )
TARGET_LINK_LIBRARIES(test_log 	ak-lib_s )
ENDIF()


